package com.example.bookstore.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.bookstore.common.PageResult;
import com.example.bookstore.common.Result;
import com.example.bookstore.dto.QueryBookParamsDto;
import com.example.bookstore.entity.Book;

import java.util.List;

public interface BookService extends IService<Book> {
    PageResult<Book> selectByPageAndCondition(int currentPage, int pageSize, QueryBookParamsDto params);

    Result<String> addBook(Book book);

    Result<String> updateBook(Book book);

    Result<String> deleteBook(List<Long> ids);

    Result<String> up(List<Long> ids);

    Result<String> down(List<Long> ids);

    Result<String> updateBookImg(Book book);

    Book selectByBookId(String bookId);
}
